<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!--系统修饰符 .ctrl 修饰符 -->
        <!-- 点击按钮的同时，必须要按下ctrl键，点击事件才会生效 -->
        <!-- prevent 修饰符和 passive修饰符两者之间不要连用，会报错的！！！ -->
        <button @click.ctrl.stop.prevent='handleClick'>点击同时按下 ctrl键</button>
    </div>
    <script src="./vue.js"></script>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{},
            methods: {
                handleClick:function(e){
                    console.log("按下了：",e.code);
                }
            },
        })
    </script>
</body>
</html>